package 设计模式.proxy.jdk_proxy;

/*
* jdk动态代理，代理对象是在运行时生成
*/
public class Client {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory();
        SellTickets proxy = proxyFactory.getProxy();
        proxy.buy("22","张三");
    }
}
